import React from 'react';
import style from './css/SelectButton.css';

class SelectButton extends React.Component {
	
	render() {
		let selected = this.props.selected;
		return (
			<span {...this.props} className={'selectButtonContainer ' + (selected ? ('selectedButtonSelected ' + style.selectedButtonSelected) : style.selectedButton)}>
				{this.props.children}
			</span>
		);
	}
	
}

export default SelectButton;
